<?php
/*
 * 多图的上传
 * @author     Mark <zhaody901@126.com>
 * @copyright  Copyright (c) 2013 lemon team
 * @version    $Id: 2910d588a404249806aac88cf84494317dfde298 $
 * @time       14-2-7 上午10:14
 */
require_once '../../common.inc.php';
if (isset($_REQUEST["PHPSESSID"])) {
	session_id($_REQUEST["PHPSESSID"]);
}
Session::start();
$uModuleid = getgpc('uMid');
$uUserid   = getgpc('uUserid');
$uAuth     = getgpc('uAuth');
$uUserid   = getgpc('uUid');

$upload = new MultiUpload();
$upload->setSource($uModuleid, 'multi');
$upload->setUserid($uUserid);

if ($uAuth && !$upload->checkSwfAuth($uAuth)) {
	$upload->error();
}

if ($upload->save($_FILES['imgFile'])) {
	$upload->ok();
} else {
	$upload->error();
}